package com.alan.camunda.boot.util;

import java.time.Instant;

public class StringFunctions {

    public static String concat(String s1, String s2) {
        return s1 + s2;
    }

    public static String toUpperCase(String s) {
        return s.toUpperCase();
    }

    public static String toLowerCase(String s) {
        return s.toLowerCase();
    }

    public static String reverse(String s) {
        return new StringBuilder(s).reverse().toString();
    }

    public static String substring(String s, int beginIndex, int endIndex) {
        return s.substring(beginIndex, endIndex);
    }


    public static Instant now() {
        return Instant.now();
    }

    public static long forceSleep(long millis) {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return millis;
    }

}
